<?xml version="1.0" encoding="UTF-8"?>
<!--
    Document   : RegistroTipoPersona
    Created on : May 1, 2010, 10:39:44 PM
    Author     : markos
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <webuijsf:page id="page1">
            <webuijsf:html id="html1">
                <webuijsf:head id="head1">
                    <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                </webuijsf:head>
                <webuijsf:body id="body1" style="-rave-layout: grid">
                    <div id="page">
                        <div id="content">
                            <div>
                                <h1 class="title">Registro de Tipo de Persona</h1>
                                <webuijsf:form id="form1" virtualFormsConfig="virtualForm1 | gridPanel1:txtNombre | gridPanel2:btnOk , virtualForm2 | | gridPanel2:btnCancel">
                                    <webuijsf:messageGroup id="messageGroup1" styleClass="panelContent" title="DAV"/>
                                    <h:panelGrid id="gridPanel3" styleClass="panelContent">
                                        <webuijsf:table augmentTitle="false" id="ttipopersona" paginateButton="true" paginationControls="true" title="Tipos de Personas">
                                            <webuijsf:tableRowGroup binding="#{RegistroTipoPersona.tableRowGroup}" id="tableRowGroup1" rows="5" selected="#{RegistroTipoPersona.selectedState}"
                                                sourceData="#{RegistroTipoPersona.listaTiposPersonas}" sourceVar="currentRow">
                                                <webuijsf:tableColumn headerText="Código" id="tableColumn1" sort="tpTipoPersona">
                                                    <webuijsf:staticText id="staticText1" text="#{currentRow.value['tpTipoPersona']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Descripción" id="tableColumn2" sort="tpDescripcion">
                                                    <webuijsf:staticText id="staticText2" text="#{currentRow.value['tpDescripcion']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Modificar" id="tableColumn3">
                                                    <webuijsf:button actionExpression="#{RegistroTipoPersona.btnUpdate_action}" id="btnUpdate1"
                                                        imageURL="/resources/images/image_edit.png" text="Modificar" toolTip="Modificar"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Eliminar" id="tableColumn4">
                                                    <webuijsf:button actionExpression="#{RegistroTipoPersona.bnDelete_action}" id="btnDelete1"
                                                        imageURL="/resources/images/image_delete.png" text="Eliminar" toolTip="Eliminar"/>
                                                </webuijsf:tableColumn>
                                            </webuijsf:tableRowGroup>
                                        </webuijsf:table>
                                    </h:panelGrid>
                                    <h:panelGrid id="gridPanel1" styleClass="panelContent">
                                        <webuijsf:textField binding="#{RegistroTipoPersona.txtNombre}" columns="50" id="txtNombre" label="Descripcion"/>
                                    </h:panelGrid>
                                    <h:panelGrid columns="3" id="gridPanel2" styleClass="panelContent">
                                        <webuijsf:button actionExpression="#{RegistroTipoPersona.btnNew_action}" id="btnNew"
                                            imageURL="/resources/images/image_add.png" style="height: 30px; width: 30px"/>
                                        <webuijsf:button actionExpression="#{RegistroTipoPersona.btnOk_action}" id="btnOk" imageURL="/resources/images/ok.ico" style="height: 30px; width: 30px"/>
                                        <webuijsf:button actionExpression="#{RegistroTipoPersona.btnCancel_action}" id="btnCancel"
                                            imageURL="/resources/images/cancel.ico" style="height: 30px; width: 22px"/>
                                    </h:panelGrid>
                                </webuijsf:form>
                            </div>
                        </div>
                        <div id="sidebar">
                            <div id="footer">
                                <p id="legal">2010 DHAL S.A.<br/>Todos los derechos reservados</p>
                                <p id="links">
                                    <a href="#">Privacy</a> | <a href="#">Terms</a> | <a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">
                                        <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>
                                    </a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" title="This page validates as CSS">
                                        <abbr title="Cascading Style Sheets">CSS</abbr>
                                    </a>
                                </p>
                            </div>
                        </div>
                    </div>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
</jsp:root>
